﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class TimerDemo : MonoBehaviour {

	// Use this for initialization
	void Start () {
        GameTimeSystemFacade.Inst.RegisterTimer(10, 1, () => {
            Debug.Log("十秒计时器结束scale为1");
        });

        GameTimeSystemFacade.Inst.RegisterTimer(10,2, () => {
            Debug.Log("十秒计时器结束scale为2");
        });

        GameTimeSystemFacade.Inst.RegisterTimer(10, 0.5f, () => {
            Debug.Log("十秒计时器结束scale为0.5");
        });
    }
	
	// Update is called once per frame
	void Update () {
		
	}
}
